# 三行四列
for i in range(1, 4):
    for j in range(1, 5):
        print("*", end="")
    print()  # 换行 

print("-"*40)  # 打印分割线

# 直角三角形
for i in range(1, 7):
    for j in range(1, i+1):
        print("*", end="")
    print()

print("-"*40)  # 打印分割线

# 倒三角形
for i in range(1, 7):
    for j in range(1, 8-i):
        print("*", end="")
    print()

print("-"*40)  # 打印分割线

# 等腰三角形
for i in range(1, 6):
    for j in range(1, 6-i):
        print(" ", end="")
    for k in range(1, i*2):
        print("*", end="")
    print()